<template>
  <div class="">
    <div class="title">
      <span class="title_big">投诉管理-列表</span>
      <span class="title_small">（共1条）</span>
     
    </div>
    <el-form
      size="mini"
      :inline="true"
      :model="searchForm"
      class="demo-form-inline search"
    >
      <el-form-item label="理由" width="60">
        <el-select
          size="mini"
          v-model="searchForm.orgname"
          clearable
          placeholder="请选择"
        >
          <el-option value="wu"></el-option>
        </el-select>
      </el-form-item>
      <el-form-item label="投诉人">
        <el-select
          size="mini"
          v-model="searchForm.role"
          clearable
          placeholder="请选择"
        >
          <el-option value="管理员"></el-option>
        </el-select>
      </el-form-item>
      <el-form-item label="处理状态">
        <el-select
          size="mini"
          v-model="searchForm.type"
          clearable
          placeholder="请选择"
          style="width:100px"
        >
          <el-option value="wu"></el-option>
        </el-select>
      </el-form-item>

      <el-form-item>
        <el-button size="mini" type="info" @click="Search">搜索</el-button>
      </el-form-item>
    </el-form>
    <div class="dropdown">
      <div>
        <el-table
          :data="tableData"
          style="width: 100%"
          :default-sort="{ prop: 'date', order: 'descending' }"
        >
          <el-table-column
            type="selection"
            label="全选"
            width="75"
          ></el-table-column>
          <el-table-column prop="name" label="投诉人" sortable width="150">
          </el-table-column>
          <el-table-column prop="net" label="理由" sortable width="380">
          </el-table-column>
          <el-table-column prop="date" label="文章" sortable width="480">
            <span class="present"
              >评论内容内容内容内容内容内容内容内容内容…</span
            > </el-table-column
          >
          <el-table-column prop="date" label="时间" sortable width="150">
          </el-table-column>
          <el-table-column prop="state" label="附件" sortable width="220">
          </el-table-column>
          <el-table-column prop="operate" label="操作" :formatter="formatter">
            <span class="columns" @click="editUser">查看</span>
          </el-table-column>
        </el-table>
        <el-pagination
          @size-change="handleSize"
          @current-change="handlePage"
          :page-sizes="[10, 20, 50, 100]"
          :page-size="10"
          layout="total, sizes, prev, pager, next, jumper"
          :total="total"
        ></el-pagination>
      </div>
      <Drawer :isDrawer.sync="isDrawer" :title="'质疑投诉-查看'" :size="'60%'">
      <Question></Question>
      <template #footer>
        <el-button size="medium" @click="closeDrawer">取消</el-button>
        <el-button type="primary" size="medium">保存</el-button>
      </template>
    </Drawer>
    </div>
  </div>
</template>

<script >
import Drawer from "@/components/drawer";
import Question from './components/Question.vue';
export default {
  name: "",
  components: {
    Drawer,
    Question,
  },
  data() {
    return {
      isDrawer: false,
      searchForm: {
        realname: "",
        orgname: "",
        role: "",
        memberGroup: "",
        type: "",
        status: "",
      },
      userForm: [
        {
          realname: "用户一",
          userid: 1,
          grade: "管理员",
        },
      ], //用户列表
      total: null, //总条数
      page: 1, //页数
      size: 10, //条数
      input2: "",
      tableData: [
        {
          state: "无",
          reply: "是",
          net: "邮件内容邮件内容邮件内容邮件内容…",
          date: "2016-05-02",
          name: "戴用名",
          address: "上海市普陀区金沙江路 1518 弄",
        },
        {
          state: "无",
          reply: "是",
          net: "邮件内容邮件内容邮件内容邮件内容…",
          date: "2016-05-04",
          name: "戴用名",
          address: "上海市普陀区金沙江路 1517 弄",
        },
        {
          state: "无",
          reply: "是",
          net: "邮件内容邮件内容邮件内容邮件内容…",
          date: "2016-05-01",
          name: "戴用名",
          address: "上海市普陀区金沙江路 1519 弄",
        },
        {
          state: "无",
          reply: "是",
          net: "邮件内容邮件内容邮件内容邮件内容…",
          date: "2016-05-03",
          name: "戴用名",
          address: "上海市普陀区金沙江路 1516 弄",
        },
      ],
    };
  },
  methods: {
    editUser() {
      this.isDrawer = true;
    },
    closeDrawer() {
      this.isDrawer = false;
    },
  },
};
</script>

<style lang="" scoped>
.search {
  height: 54px;
  background-color: #ffffff;
  border-radius: 5px;
  box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
  padding: 13px 10px 0;
  margin: 20px 0 30px;
}
.columns {
  color: rgba(251, 83, 75, 1);
  margin-right: 20px;
}
.modify {
  color: rgba(251, 83, 75, 1);
  margin-right: 20px;
}
.copy {
  color: rgba(251, 83, 75, 1);
  margin-right: 20px;
}
.present {
  font-family: Source Han Sans CN;
  color: #666666;
  font-size: 16px;
}
.original {
  font-family: Source Han Sans CN;
  color: #6878f0;
  font-size: 16px;
}
.eject {
  margin-top: 20px;
}
.filter > div {
  width: 56px;
  height: 24px;
  background-color: #6878f0;
  border-radius: 5px;
  box-shadow: 0px 0px 6px rgba(0, 12, 100, 0.2);
  margin-left: 20px;
}
.filter {
  display: flex;
  margin-left: -20px;
  margin-top: 25px;
  margin-bottom: 30px;
}
.title_big {
  width: 153px;
  height: 24px;
  font-family: Source Han Sans CN;
  font-weight: 700;
  color: #666666;
  font-size: 24px;
}
.title {
  margin-left: 20px;
  margin-top: 40px;
  margin-bottom: 20px;
}
</style>


